{extend name="base" /}
{block name="body"}
<div class="layui-body">
    <!--tab标签-->
    <div class="layui-tab layui-tab-brief">
        <ul class="layui-tab-title">
            <li class="layui-this">富文本编辑</li>
            <li>树级菜单</li>
        </ul>
        <div class="layui-tab-content">
            <div class="layui-tab-item layui-show">
                <form class="layui-form form-container" action="{:url('admin/Other/edit')}" method="post">
					<input name="id" type="hidden" value="{$data.id}"/>
					<div class="layui-form-item">
                        <label class="layui-form-label">内容</label>
                        <div class="layui-input-block">
                            <textarea id="default-template" name="body" placeholder="请输入内容..." class="layui-textarea">{$data.body}</textarea>
                        </div>
                    </div>
					
                    <div class="layui-form-item">
                        <div class="layui-input-block">
                            <button class="layui-btn" lay-submit lay-filter="*">保存</button>
                            <button type="reset" class="layui-btn layui-btn-primary reset">重置</button>
                        </div>
                    </div>
                </form>
            </div>

        </div>
    </div>
</div>
{/block}
{block name="js"}
<script src="__JS__/ueditor/ueditor.config.js"></script>
<script src="__JS__/ueditor/ueditor.all.js"></script>

{/block}
{block name="script"}
<script>

	var ue = UE.getEditor('default-template');
	ue.ready(function() {
		ue.setHeight(350);
		$('.reset').on('click',function(){
			ue.setContent('');
			$('textarea[name="body"]').html('');
		})
	});


</script>
{/block}